package day09API.file;

import java.io.File;

public class Demo03 {
    public static void main(String[] args) throws Exception {
        File file = new File("./File/mkdir/img/xx");
        if (!file.exists()) {
            file.mkdirs();//创建一层或多层目录
            System.out.println("创建成功");
        }
        System.out.println(file.delete());//只能删一层


    }
}
